package com.wing.cms.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.wing.common.util.DateUtils;


@Entity
@Table(name = "cms_article")
public class  Article {

  	@Id
  	@Column(name = "id")
  	private String id;
  	@Column(name = "site_id")
  	private String site_id;
  	@Column(name = "art_name")
  	private String art_name;
  	@Column(name = "summary")
  	private String summary;
  	@Column(name = "keyword")
  	private String keyword;
  	@Column(name = "author")
  	private String author;
  	@Column(name = "article_path")
  	private String article_path;
  	@Column(name = "create_user")
  	private String create_user;
	@Column(name="create_time")
	private Date create_time;
  	@Column(name = "valid_flag")
  	private int valid_flag;
  	@Column(name = "status")
  	private int status;
  	@Column(name = "ordernum")
  	private int ordernum;
  	
	//附加属性
  	private String content="";
	private String reatetimeSrc;
	private String firtImgrSrc;
	private String isNew;
	private String showTitle; 

  	public void  setId(String id){
  		this.id = id;
  	}
	public String getId(){
  		return this. id; 
  	}
  	public void  setArt_name(String art_name){
  		this.art_name = art_name;
  	}
	public String getArt_name(){
  		return this. art_name; 
  	}
  	public void  setSummary(String summary){
  		this.summary = summary;
  	}
	public String getSummary(){
  		return this. summary; 
  	}
  	public void  setKeyword(String keyword){
  		this.keyword = keyword;
  	}
	public String getKeyword(){
  		return this. keyword; 
  	}
  	public void  setAuthor(String author){
  		this.author = author;
  	}
	public String getAuthor(){
  		return this. author; 
  	}
  	public void  setArticle_path(String article_path){
  		this.article_path = article_path;
  	}
	public String getArticle_path(){
  		return this. article_path; 
  	}
  	public void  setCreate_user(String create_user){
  		this.create_user = create_user;
  	}
	public String getCreate_user(){
  		return this. create_user; 
  	}
  	public void  setValid_flag(int valid_flag){
  		this.valid_flag = valid_flag;
  	}
	public int getValid_flag(){
  		return this. valid_flag; 
  	}
  	public void  setStatus(int status){
  		this.status = status;
  	}
	public int getStatus(){
  		return this. status; 
  	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public String getCreate_time_view() {
		return DateUtils.datetimeToString(create_time);
	}
	public void setCreate_time_view(String create_time) {
		this.create_time = DateUtils.stringToDatetime(create_time);
	}
	public String getSite_id() {
		return site_id;
	}
	public void setSite_id(String site_id) {
		this.site_id = site_id;
	}
	public String getContent() {  
//		String c = content.replace("<", "&lt;");
//		c = c.replace(">", "&gt;");
//		c = c.replace("&", "&amp;");
//		c = c.replace("\"", "&quot;");
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getReatetimeSrc() {
		return reatetimeSrc;
	}
	public void setReatetimeSrc(String reatetimeSrc) {
		this.reatetimeSrc = reatetimeSrc;
	}
	public String getFirtImgrSrc() {
		return firtImgrSrc;
	}
	public void setFirtImgrSrc(String firtImgrSrc) {
		this.firtImgrSrc = firtImgrSrc;
	}
	public String getIsNew() {
		return isNew;
	}
	public void setIsNew(String isNew) {
		this.isNew = isNew;
	}
	public String getShowTitle() {
		return showTitle;
	}
	public void setShowTitle(String showTitle) {
		this.showTitle = showTitle;
	}
	public int getOrdernum() {
		return ordernum;
	}
	public void setOrdernum(int ordernum) {
		this.ordernum = ordernum;
	}
	
	

}
